@extends('layouts.main')

@section('content')
<div class="container">
    <div class="row">
        <form action="{{ route('categories.update', $category->id)}}" method="POST">
            @csrf
            @method('PUT')
                <div class="form-group">
                    <label for="name">Наименование</label>
                    <input type="text" class="form-control" id="name" name="title" value="{{$category->title}}" placeholder="Укажите наименование">
                </div>
                
                <button type="submit" class="btn btn-primary">Изменить</button>
            
        </form>
    </div>
</div>
@endsection